package com.naiterui.ehp.bs.emr.repository.mongo;

import com.naiterui.common.repository.core.BaseMongoRepository;
import com.naiterui.ehp.bs.emr.entity.mongo.health.PatientHealthRecord;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description 健康档案
 * @Author gongbaoqiang
 * @Date 2020/6/3 2:21 PM
 */
@Repository
public interface PatientHealthRecordRepository extends BaseMongoRepository<PatientHealthRecord, String> {

    /**
     * 根据家庭成员id获取健康档案
     * @param familyId
     * @return
     */
    PatientHealthRecord findFirstByFamilyId(Long familyId);


    List<PatientHealthRecord> findByPatientId(Long patientId);

}
